package com.xpgk.mvc.bpropaganda;

import java.util.Date;

import com.jfinal.core.Controller;
import com.jfinal.kit.StrKit;
import com.jfinal.log.Log;
import com.xpgk.mvc.base.BaseValidator;
import com.xpgk.mvc.user.User;
import com.xpgk.tools.ToolDateTime;
import com.xpgk.tools.ToolRandoms;

@SuppressWarnings({ "unused" })
public class PropgandaValidator extends BaseValidator {

	private static final Log log = Log.getLog(PropgandaValidator.class);


	protected void validate(Controller controller) {
		validateString("bpropaganda.time", 1, 50, "msg", "请填写活动时间!");
		validateString("bpropaganda.place", 1, 50, "msg", "请填写地点!");
		validateString("bpropaganda.way", 1, 50, "msg", "请填写方式!");
		validateString("bpropaganda.propagandas", 1, 50, "msg", "请填写活动内容!");
		validateString("bpropaganda.personnel", 1, 1000, "msg", "请选择参加人员!");
	}

	
		
	
		
	

	protected void handleError(Controller controller) {
		controller.renderJson();
	}

}
